import 'package:mortgageCalculator/modal/httpUtils.dart';

Future getResult(loan, months, rate, payment) async {
  String url = "/ws/Landlord.asmx/CalcBoth2020";
  try {
    var response = await Http.request(url, method: Http.POST, data: {
      'loan': loan,
      'months': months,
      'rate': rate,
      'payment': payment
    });
    return response;
  } catch (e) {
    print(e);
  }
}
